﻿using UnityEngine;

namespace Pisces
{
	/**
	 * ui的显示类
     * created by wangqiang
    **/
	public abstract class AbstractUIView : InterfaceUILiftcycle
	{
		/// <summary>
		/// 自己的变换组件
		/// </summary>
		protected Transform transform;

		public Transform Transform
		{
			get => transform;
			set => transform = value;
		}

		public virtual void onInit()
		{
		}

		public virtual void onLoaded()
		{
		}

		public virtual void onAwake()
		{
		}

		public virtual void onShow()
		{
			
		}

		public virtual void onHide()
		{
			
		}

		public virtual void onUpdate(float deltaTime)
		{
		}

		public virtual  void onDestroy()
		{
		}
	}
}